package com.xuecheng.framework.model.response;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@ToString
@NoArgsConstructor
public class DataResponseResult extends ResponseResult {

    Object data;

    public DataResponseResult(ResultCode resultCode, Object data){
        super(resultCode);
        this.data = data;
    }
    public static DataResponseResult success(Object data){
        DataResponseResult dataResponseResult = new DataResponseResult(CommonCode.SUCCESS, data);
        return dataResponseResult;
    }
}
